package com.fc.mall.portal.controller;

import com.fc.mall.base.object.Result;
import com.fc.mall.portal.dto.GradeConditon;
import com.fc.mall.portal.service.UmsMemberLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Sunny on 2019/6/28.
 */
@RestController
@RequestMapping("/member/level")
public class UmsMemberLevelController {

    @Autowired
    private UmsMemberLevelService memberLevelService;


    @GetMapping("current")
    public Result handleGetMemberLevelInfo()
    {
        GradeConditon gradeConditon = memberLevelService.getCurrentMemberLevleConditon();
        return Result.success(gradeConditon);
    }
}
